CC=g++
CCFLAGS=-std=c++0x -g
LLIBS=-lpthread

OBJ_DIR=obj

DEPS=bench/epcc.h \
		 bench/epcc.impl.h \
		 synchronizations/PthreadMutexLock.h \
		 synchronizations/TMCSpinLock.h \
		 synchronizations/barrier.h \
		 synchronizations/PthreadBarrier.h \
		 synchronizations/TmcSpinBarrier.h \
		 synchronizations/SpinningCentralBarrier.h \
		 synchronizations/SpinningDisseminationBarrier.h \
		 synchronizations/FetchAndAdd.h \
		 synchronizations/CompareAndExchangeVal.h \
		 synchronizations/CompareAndExchangeBool.h \
		 misc/assert.h \
		 misc/atomic.h \
		 misc/get_clock.h \
		 misc/lock.h \
		 misc/misc.h

.PHONY: clean

test_bench:
	$(CC) $(CCFLAGS) -o $@ main.cpp $(DEPSS) $(LLIBS)

clean:
	rm -rf $(OBJ_DIR)/*.o test_bench
